<h2>Editing my profile</h2>

<h3>Informations personnelles :</h3>

<?php

echo $this->Form->create('User');
echo $this->Form->input('User.pseudo', array(
    'label' => __('Surnom :')
));

echo $this->Form->input('User.surname', array(
    'label' => __('Nom :')
));

echo $this->Form->input('User.name', array(
    'label' => __('Prénom :')
));

echo $this->Form->input('User.gender', array(
    'label' => __('Gender :'),
    'options' => array(
        'M' => 'Male',
        'F' => 'Female'
    ),
    'default' => $user['User']['gender']
));

echo $this->Form->input('User.born', array(
    'dateFormat' => 'DMY',
    'label' => __('Born :'),
));



echo $this->Form->input('User.description', array(
    'dateFormat' => 'DMY',
    'label' => __('Description :'),
));

echo $this->Form->end('Save');

?>

<h3>Riding informations</h3>
<?php
echo $this->Form->create('User');
echo $this->Form->input('User.sport', array(
    'label' => __('Sport :')
));

echo 'penser à rajouter l\'équipement et les stations préférées';


echo $this->Form->end('Save');

?>

<h3>Changement de mot de passe</h3>
<?php
echo $this->Form->create('User');
echo $this->Form->input('User.password', array(
    'label' => __('Password :')
));
echo $this->Form->input('User.password', array(
    'label' => __('Password :')
));
echo $this->Form->input('password_confirm', array(
    'label' => __('Confirm your password :'),
    'type' => 'password'
));

echo $this->Form->end('Save');

?>
